from django.urls import path
from .views import product_list, product_detail, add_to_cart, cart_view, add_products, manage_products, edit_product, delete_product

urlpatterns = [
    path('', product_list, name='product_list'),
    path('<int:product_id>/', product_detail, name='product_detail'),
    path('add-to-cart/<int:product_id>/', add_to_cart, name='add_to_cart'),
    path('cart/', cart_view, name='cart_view'),
    path('add-product/', add_products, name='add_product'),
    path('manage-products/', manage_products, name='manage_products'),
    path('edit-product/<int:product_id>/', edit_product, name='edit_product'),
    path('delete-product/<int:product_id>/', delete_product, name='delete_product'),
]
